package com.asset.dispoal.dataDetail.service.commom;

import com.asset.dispoal.dataDetail.domain.db.mapper.SysDataDetailMapper;
import com.asset.dispoal.dataDetail.dto.SysDataTypeDetailTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;

import java.util.List;

@Component
public class SysDataTypeQueryTemplateByAssetInstBatchIdCommand implements BaseCommand<String, List<SysDataTypeDetailTemplate>> {
    @Autowired
    private SysDataDetailMapper dataDetailMapper;

    public List<SysDataTypeDetailTemplate> execute(String assetInstBatchId) {
        return dataDetailMapper.queryTemplateByAssetInstBatchId(assetInstBatchId);
    }
}
